package com.lyj.springcloud.entities;

public class Man extends Person {
    private String name;
    private String age;


   /* public Man(String sex, String name, String age) {
        super(sex);
        this.name = name;
        this.age = age;
    }*/

    public Man(String name, String age) {
        super();
        System.out.println("子类构造方法执行了。。。");
        this.name = name;
        this.age = age;
    }

    @Override
    public void work() {
        System.out.println("男人正在工作。。。。");
    }

    public static void main(String[] args) {
        Man m = new Man("zs","10");
    }
}
